<?php
/**
 * @file:   compositio/node.tpl.php
 * @author: Kitt Hodsden - http://kitt.hodsden.org/
 *
 * Original theme designed by DesignDisease, released By-SA through SmashingMagazine
 * http://designdisease.com/blog/compositio-wordpress-theme/
 * http://www.smashingmagazine.com/2009/02/18/compositio-clean-beautiful-and-free-wordpress-theme/
 */
?>
<div id="node-<?php print $node->nid; ?>" class="post node<?php if ($sticky) { print ' sticky'; } ?><?php if (!$status) { print ' node-unpublished'; } ?>"  style="margin-bottom: 40px;">
<div class="p-head">
<?php if ($page == 0) { ?>
  <h1><a href="<?php print $node_url ?>" title="<?php print $title ?>"><?php print $title ?></a></h1>
<?php } else { ?>
  <h1><?php print $title ?></h1>
<?php } ?>
<p class="p-cat">By: <?php print theme('username', $node); ?></p>
<small class="p-time">
<strong class="day"><?php print date('j', $node->created); ?></strong>
<strong class="month"><?php print date('M', $node->created); ?></strong>
<strong class="year"><?php print date('Y', $node->created); ?></strong>
</small>
</div>

<div class="p-con">
<?php print $node->content['body']['#value']; ?>
</div>

<div class="p-det">
<ul>
<?php if ($comments) { ?>
<li class="p-det-com">
<?php
  if ($page == 0 && !empty($node->links['comment_comments'])) {
    print l($node->links['comment_comments']['title'], $node->links['comment_comments']['href'], $node->links['comment_comments']['attributes'], $node->links['comment_comments']['fragment']);
  } else {
  print $comments;
  }
?></li>
<?php } ?>
<?php if ($terms) { ?>
<li class="p-det-tag">
  <?php print $terms; ?>
</li>
<?php } ?>
<?php if (!empty($node->links['node_read_more'])) { ?>
<li class="p-det-cont"><?php print l($node->links['node_read_more']['title'], $node->links['node_read_more']['href'], $node->links['node_read_more']['attributes']); ?></li>
<?php } ?>
</ul>
</div>

</div>
